<template>
  <header class="header">
    <div class="header-container">
      <div class="logo">{{ props.title }}</div>
    </div>
  </header>
</template>

<script setup>
// 定义props
const props = defineProps({
  title: {
    type: String,
    default: '基于springboot的文旅系统'
  },
})

</script>

<style scoped>
.header {
  background-color: #8b6d47;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
}
</style>
